package org.dromara.system.domain.bo;

import org.dromara.system.domain.ZtUserVip;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 用户VIP业务对象 zt_user_vip
 *
 * @author Lion Li
 * @date 2024-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = ZtUserVip.class, reverseConvertGenerate = false)
public class ZtUserVipBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * VIP有效结束日期
     */
    @NotNull(message = "VIP有效结束日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date effectiveEndDate;

    /**
     * 备注
     */
    private String remark;


}
